package com.example.mediamoudle.systime.extractor

import android.media.MediaFormat
import com.example.mediamoudle.systime.base.IExtractor
import java.nio.ByteBuffer

class VideoExtractor (path:String): IExtractor {
    private val mMediaExtractor = MMExtractor(path)
    override fun getFormat(): MediaFormat? = mMediaExtractor.getVideoFormat()

    override fun readBuffer(byteBuffer: ByteBuffer): Int = mMediaExtractor.readBuffer(byteBuffer)

    override fun getCurrentTimestamp(): Long = mMediaExtractor.getCurrentTimestamp()

    override fun getSampleFlag(): Int = mMediaExtractor.getCurrentTimeFlag()

    override fun seek(pos: Long): Long =mMediaExtractor.seek(pos)

    override fun setStartPos(pos: Long) = mMediaExtractor.setStartPos(pos)

    override fun stop() = mMediaExtractor.stop()
}